package com.yenlien.traceyun.plant.dao;

import com.yenlien.traceyun.plant.entity.AppVersion;
import com.yenlien.traceyun.webase.dao.BaseJpaDao;
import org.springframework.data.jpa.repository.Query;

public interface AppVersionDao extends BaseJpaDao<AppVersion> {

    @Query(value = "SELECT * FROM app_version ORDER BY `create_time` DESC LIMIT 1", nativeQuery = true)
    AppVersion getLast();


}
